<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body th:fragment="toolbar">
<div id="datagridtoolbar">
    <form id="fromsearch">
		<span style="display:-moz-inline-box;display:inline-block;">
		<span class="searchColums-span">员工姓名</span>
			<input class="easyui-textbox" type="text" style="width: 150px;" name="name" id="name" />
		</span>
        <a id="search-button" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="doSearch()">搜索</a>
        <a id="reset-button" class="easyui-linkbutton" data-options="iconCls:'icon-reload'" onclick="clearForm('fromsearch');">重置</a>
    </form>
    <p />
    &nbsp;<a id="add-button" class="easyui-linkbutton" data-options="iconCls:'icon-add'" onclick="editRowTab('添加员工信息','-1')">添加</a>
</div>
<script type="text/javascript">

    function doSearch() {
        $("#topdatagrid").datagrid({
            queryParams : {
                name:$("#name").textbox('getValue')
            }
        });
    }
</script>
</body>
</html>